<?php
	/*
		script: cgi-workaround.php
			
		When PHP is not an apache module but runs as cgi, it is not possible to add
		> 	php_value auto_prepend_file /path/to/smuoi-prepend.php
		to .htaccess files.  Instead, we set auto_prepend_file to link to this file in php.ini and do
		> 	SetEnv php_auto_prepend_file /path/to/smuoi-prepend.php
		in .htaccess instead.  
		
		Of course auto_prepend_file smuoi-prepend.php in php.ini will work also, but this script is shorter and so 
		imposes a minimal overhead on the rest of your PHP environment.
	*/

	if($pp = getenv('php_auto_prepend_file')) require_once($pp);

